<script setup>
import {ref} from "vue";
let time =ref(new Date());
setInterval(() => {
  time.value = new Date()
},1000)
</script>
<template>
  <div>
    当前的时间为：{{time}}
  </div>
</template>

<style scoped></style>
